

@RestController
@RequestMapping("/fmsSpecificationConfig")
public class FmsSpecificationConfigController {

    @Resource
    private FmsSpecificationConfigService fmsSpecificationConfigService;


    /**
     * 获取 FmsSpecificationConfig 分页列表
     */
    @GetMapping("/pagination")
    public Ret getFmsSpecificationConfigPagination( PaginationVo paginationVo, FmsSpecificationConfigQuery fmsSpecificationConfigQuery ) throws Exception {
        IPage page = fmsSpecificationConfigService.getFmsSpecificationConfigPagination(paginationVo, fmsSpecificationConfigQuery );
        return Ret.toPage(page);
    }


    /**
     * 获取 FmsSpecificationConfig 所有数据
     */
    @GetMapping("/all")
    public Ret getFmsSpecificationConfigAllList( FmsSpecificationConfigQuery fmsSpecificationConfigQuery ) throws Exception {
        List<FmsSpecificationConfigEntity> list = fmsSpecificationConfigService.getFmsSpecificationConfigAllList( fmsSpecificationConfigQuery );
        return Ret.ok(list);
    }



    /**
     * 获取 FmsSpecificationConfig 详情
    */
   @GetMapping("/{id}")
   public Ret getFmsSpecificationConfigDetail(@PathVariable Long id) throws Exception {

       FmsSpecificationConfigEntity fmsSpecificationConfig = fmsSpecificationConfigService.getFmsSpecificationConfigDetail(id);
       return Ret.ok(fmsSpecificationConfig);
   }


    /**
     * 新增 FmsSpecificationConfig
     * */
    @PostMapping("")
    public Ret addFmsSpecificationConfig(@RequestBody FmsSpecificationConfigVo fmsSpecificationConfigVo) throws Exception {

        fmsSpecificationConfigService.addFmsSpecificationConfig(fmsSpecificationConfigVo);
        return Ret.ok();
    }


    /**
     * 更新 FmsSpecificationConfig
     * */
    @PutMapping("")
    public Ret updateFmsSpecificationConfig(@RequestBody FmsSpecificationConfigVo fmsSpecificationConfigVo) throws Exception {

        fmsSpecificationConfigService.updateFmsSpecificationConfig(fmsSpecificationConfigVo);
        return Ret.ok();
    }


    /**
     * 删除 FmsSpecificationConfig
     * */
    @PostMapping("/batchRemove")
    public Ret batchRemoveFmsSpecificationConfig( @RequestBody List<Long> ids ) throws Exception {

        fmsSpecificationConfigService.batchRemoveFmsSpecificationConfig(ids);
        return Ret.ok();
    }
}

  